package org.rooster.manager;

import java.net.UnknownHostException;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.rooster.dbmanager.repository.RoosterRepository;

/**
 * Created by IntelliJ IDEA.
 * User: manorama
 * Date: 6/3/12
 * Time: 7:01 PM
 * To change this template use File | Settings | File Templates.
 */
public class ResourceManager {

    public ResourceManager() {
        try {
            TOTAL_NO_OF_EMPLOYEES = RoosterRepository.getInstance().getTotalResourceCount();
        } catch (UnknownHostException ex) {
            Logger.getLogger(ResourceManager.class.getName()).log(Level.SEVERE, null, ex);
        }
    }
    public static int TOTAL_NO_OF_EMPLOYEES = 21;
    public static int MIN_WORKING_SLOTS = 4;
    public static int MAX_WORKING_SLOTS = 6;
    public static int MIN_SHIFT_LENGTH = 2;
    public static int MAX_SHIFT_LENGTH = 3;

    public static void setTOTAL_NO_OF_EMPLOYEES(int TOTAL_NO_OF_EMPLOYEES) {
        ResourceManager.TOTAL_NO_OF_EMPLOYEES = TOTAL_NO_OF_EMPLOYEES;
    }
}
